Reasons
- driver up
- watchdog
- phy init
- bss join
- ibss join
- start bss
phy init
- if multi phase allowed and pending:
- reset multie phase
- schedule multi phase calibration for later
(i)bss join, start bss
- if multi phase allowed and pending, reset multi phase
- run full
watchdog
- if multi phase allowed and not pending, schedule multi phase
- run auto
reset multi phase
multi phase calibration
run
- do nothing if channel is muted (radar)
- if channel is quiet, do only after associated
- if doing auto, fall back to full unless last calibration was on the current channel
- restart multi phase if it was started and previously on a different channel
- suspend MAC
- enter PHY reg lock
- if multi phase is idle or in step 0,
- store bits 0x7f00 from phy regs 0x1ed and 0x1ee
- if tx power control is off, read table ..., otherwise use values 0 and 0
- get target TX gain
- set TX power control to off
... FIXME on rev >= 3
- if antenna selection is 2x3, init superswitch (1)
- ... multi phase stuff ...
... restore FIXME on rev >= 3
- set TX power control to previous state
- exit PHY reg lock, enable MAC